package com.ops.memcache.core;

import net.sf.ehcache.Element;

import java.io.Serializable;

/**
 * lenovo
 * 2017/5/10
 * untitled
 */
public class EHCacheElement implements ICacheElement {
	private Element element;

	public EHCacheElement(Element element) throws Exception {
		this.element = element;
	}

	public EHCacheElement(Serializable key, Serializable value) throws Exception {
		this.element = new Element(key, value);
	}

	public Serializable getKey() throws Exception {
		return this.element.getKey();
	}

	public Serializable getValue() throws Exception {
		return this.element.getValue();
	}
}
